import { observable, computed, action } from 'mobx';
import axios from 'axios';
class User {    
    @action getBanner() {        
        return new Promise((resolve, reject) => {
            axios.post('http://proxy.jinpu.8raw.com/By_Banners_query', {                
                    role: '',    
                    code: 'itboye',
                    service_type: 'By_Banners_query',
                    service_version: '100',
                    position: '00P007001',
                    notify_id: 0
                })
                .then(response => {      
                    resolve(response.data);                    
                })
        })        
    }    
    @action getDoctorItem() {
        return new Promise((resolve, reject) => {
            axios.post('http://proxy.jinpu.8raw.com/By_Banners_query', {                
                    role: '',    
                    code: 'itboye',
                    service_type: 'By_Banners_query',
                    service_version: '100',
                    position: '00P007001',
                    notify_id: 0
                })
                .then(response => {      
                    resolve(response.data);                    
                })
        })   
    }
}

export default new User;